<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
    ul li{
      height: 30px;
      background: red;
      color: #fff;
      margin-bottom: 10px;
      cursor: pointer;
    }
  </style>
</head>
<body>
  <ul id="list">
    <li>点击我可删除</li>
  </ul>
  <button id="btn">添加记录</button>
  <script src="https://unpkg.com/jquery@3.4.1/dist/jquery.js"></script>
  <script>
    $(()=>{
      $("#btn").click(()=>{
        $('#list').append(`<li>点击可删除 ${Math.random()}</li>`)
      })
    })
    $('#list').on('click','li',(e)=>{
      var currentLi = e.currentTarget;
      $(currentLi).remove()
    })
  </script>
</body>
</html>